<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="http://schemas.aspitalia.com/PaperBoyUI"
    xmlns:s="clr-namespace:System;assembly=mscorlib"
    x:Class="Ricciolo.PaperBoy.Skins.Classic.Styles"
    >
	<Style x:Key="HyperLinkStyle" TargetType="{x:Type TextBlock}">
		<Style.Triggers>
			<Trigger Property="UIElement.IsMouseOver">
				<Setter Property="TextBlock.Foreground">
					<Setter.Value>
						<SolidColorBrush>#FFFF0000</SolidColorBrush>
					</Setter.Value>
				</Setter>
				<Trigger.Value>
					<s:Boolean>True</s:Boolean>
				</Trigger.Value>
			</Trigger>
			<Trigger Property="UIElement.IsEnabled">
				<Setter Property="TextBlock.Foreground">
					<Setter.Value>
						<DynamicResource ResourceKey="{x:Static SystemColors.GrayTextBrushKey}" />
					</Setter.Value>
				</Setter>
				<Trigger.Value>
					<s:Boolean>False</s:Boolean>
				</Trigger.Value>
			</Trigger>
			<Trigger Property="UIElement.IsEnabled">
				<Setter Property="FrameworkElement.Cursor">
					<Setter.Value>
						<Cursor>Hand</Cursor>
					</Setter.Value>
				</Setter>
				<Trigger.Value>
					<s:Boolean>True</s:Boolean>
				</Trigger.Value>
			</Trigger>
		</Style.Triggers>
		<Setter Property="TextBlock.Foreground">
			<Setter.Value>
				<SolidColorBrush>#FF0000FF</SolidColorBrush>
			</Setter.Value>
		</Setter>
		<Setter Property="TextBlock.TextDecorations">
			<Setter.Value>
				<TextDecorationCollection>
					<TextDecoration Location="Underline" />
				</TextDecorationCollection>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="LoadingStyle" TargetType="{x:Type FrameworkElement}">
		<Style.Triggers>

			<DataTrigger Binding="{Binding ElementName=mainWindow,Path=CurrentFeed.Items.Count}" Value="0">
				<DataTrigger.EnterActions>
					<BeginStoryboard x:Name="loadingAnimation">
						<BeginStoryboard.Storyboard>
							<Storyboard>
								<DoubleAnimation From="1" To="1.2" Storyboard.TargetProperty="(Canvas.RenderTransform).(ScaleTransform.ScaleX)" RepeatBehavior="Forever" AutoReverse="True" Duration="0:0:2" />
								<DoubleAnimation From="1" To="1.2" Storyboard.TargetProperty="(Canvas.RenderTransform).(ScaleTransform.ScaleY)" RepeatBehavior="Forever" AutoReverse="True" Duration="0:0:2" />
								<DoubleAnimation From="0" To="1" Storyboard.TargetProperty="Opacity" RepeatBehavior="Forever" AutoReverse="True" Duration="0:0:2" />
							</Storyboard>
						</BeginStoryboard.Storyboard>
					</BeginStoryboard>
				</DataTrigger.EnterActions>

				<Setter Property="Visibility" Value="Visible" />
			</DataTrigger>

			<DataTrigger Binding="{Binding ElementName=feedItems,Path=HasItems}" Value="True">
				<DataTrigger.EnterActions>
					<StopStoryboard BeginStoryboardName="loadingAnimation"/>
				</DataTrigger.EnterActions>

				<Setter Property="Visibility" Value="Collapsed" />
			</DataTrigger>
			<DataTrigger Binding="{Binding ElementName=feedItems,Path=ItemsSource}" Value="{x:Null}">
				<DataTrigger.EnterActions>
					<StopStoryboard BeginStoryboardName="loadingAnimation"/>
				</DataTrigger.EnterActions>

				<Setter Property="Visibility" Value="Collapsed" />
			</DataTrigger>

		</Style.Triggers>

	</Style>

</ResourceDictionary>